/// <license>
/// Copyright (c) 2002-2008, DotNetNuke Corporation
/// All rights reserved
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
/// documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
/// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and 
/// to permit persons to whom the Software is furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in all copies or substantial portions 
/// of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
/// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
/// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
/// DEALINGS IN THE SOFTWARE.
/// </license>

#region Using Statements

using System;
using System.ComponentModel;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DotNetNuke.Common.Utilities;

using DotNetNuke.Entities.Modules.Actions;

using DotNetNuke.ModuleToolkit.Common;
using DotNetNuke.ModuleToolkit.Controls;
using DotNetNuke.ModuleToolkit.Modules.Skinning.SkinObjects;
using DotNetNuke.Entities.Modules;

#endregion

namespace DotNetNuke.ModuleToolkit.Modules.Extensions
{
    /// -----------------------------------------------------------------------------
    /// <summary>
    /// Defines a custom base class that adds functionality designed for Module Skin Objects
    /// that are also Extensions (implement IExtension)
    /// </summary>
    /// <remarks>
    /// NOTE: Inheriting from this control is not required but highly recommended when designing
    /// Extensions.
    /// </remarks>
    /// <history>
    ///     [cnurse]    10/11/2007  created
    /// </history>
    /// -----------------------------------------------------------------------------
    [AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal),
    AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal),
    ToolboxItem(false)
    ]
    public class ModuleExtensionBase :
        ModuleSkinObjectBase,
        IExtension
    {

        #region IExtension Members

        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Gets the icon used in the action menu for this Extension
        /// </summary>
        /// <history>
        /// 	[cnurse]	10/12/2007  Created
        /// </history>
        /// -----------------------------------------------------------------------------
        public virtual string ActionIcon
        {
            get { return String.Empty; }
        }

        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Gets the collection of ModuleActions for this Extension
        /// </summary>
        /// <history>
        /// 	[cnurse]	10/12/2007  Created
        /// </history>
        /// -----------------------------------------------------------------------------
        public virtual ModuleActionCollection GetModuleActions(PortalModuleBase parentModule)
        {
            return new ModuleActionCollection();
        }


        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Gets the name of this Extension
        /// </summary>
        /// <history>
        /// 	[cnurse]	10/12/2007  Created
        /// </history>
        /// -----------------------------------------------------------------------------
        public virtual string Name
        {
            get { return String.Empty; }
        }

        #endregion

    }
}
